package com.hpdz.hotel_back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("employees")
public class Employee extends Human implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer empId;  // 主键
    private String nickName; // 用户名

    @TableField("passwd")
    private String password; // 密码
    private String telNumb; // 电话
    private String email; // 邮箱
    private String empType; // 员工类型!
    private Date inTime; // 入职日期
    private String cardNumb; // 身份证号
    private Double salary; // 薪水
}
